home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 May (DVD) / Macworld Resource DVD May 2003.toast / Data / Software / Games / JKII_Demo.sit / Jedi Knight II Demo / demo / assets0.pk3 / ui / quit.menu < prev    next >
Encoding:
Text File  |  2002-03-22  |  10.7 KB  |  528 lines

  1.     //----------------------------------------------------------------------------------------------
  2.     //
  3.     //    QUIT MENU
  4.     //
  5.     //----------------------------------------------------------------------------------------------
  6. {
  7.     menuDef 
  8.     {
  9.         name                    "quitMenu"
  10.         visible                    0
  11.         fullScreen                1                                // MENU_TRUE                
  12.         rect                    0 0 640 480                        // Size and position of the menu
  13.         focusColor                1 1 1 1                            // Focus color for text and items
  14.         appearanceIncrement        100                                // In miliseconds
  15.         descX                    375
  16.         descY                    425
  17.         descScale                .8
  18.         descColor                .235 .882 .847 1                    // Focus color for text and items
  19.         descAlignment            ITEM_ALIGN_CENTER        
  20.         appearanceIncrement        100                                // In miliseconds
  21.  
  22.         onESC 
  23.         { 
  24.             play            "sound/interface/button1.wav" ; 
  25.             close            quitMenu ; 
  26.             open            mainMenu ;
  27.         }
  28.  
  29.         onOpen 
  30.         {
  31.             setfocus            quitgame_cancel
  32.         }
  33.  
  34.         //----------------------------------------------------------------------------------------------
  35.         //
  36.         //    MENU BACKGROUND
  37.         //
  38.         //----------------------------------------------------------------------------------------------
  39.         itemDef 
  40.         {
  41.             name                frame_pic
  42.             group                none
  43.             style                WINDOW_STYLE_SHADER
  44.             rect                0 0 640 480
  45.             background            "gfx/menus/menu1"                    // Frame
  46.             forecolor            1 1 1 1
  47.             visible            1
  48.             decoration
  49.         }
  50.  
  51.         // The saber glow on the left
  52.         itemDef 
  53.         {
  54.             name                saberglow
  55.             group                none
  56.             style                WINDOW_STYLE_SHADER
  57.             rect                30 0 90 480
  58.             background            "gfx/menus/menu3"                    // Frame
  59.             forecolor            0.8 0.8 0.8 1
  60.             visible            1
  61.             decoration
  62.         }
  63.  
  64.  
  65.         // The starwars logo on the top
  66.         itemDef 
  67.         {
  68.             name                starwars
  69.             group                none
  70.             style                WINDOW_STYLE_SHADER
  71.             rect                143 12 470 93
  72.             background            "gfx/menus/menu4"                    // Frame
  73.             forecolor            1 1 1 1
  74.             visible            1
  75.             decoration
  76.         }
  77.  
  78.         // The saber halo on the left
  79.         itemDef 
  80.         {
  81.             name                saberhalo
  82.             group                none
  83.             style                WINDOW_STYLE_SHADER
  84.             rect                -425 -185 1000 1000
  85.             background            "gfx/menus/menu2"                    // Frame
  86.             forecolor            0.5 0.5 0.5 1
  87.             visible            1
  88.             decoration
  89.         }
  90.  
  91.         itemDef
  92.         {
  93.             name                logomodel
  94.             group                none
  95.             type                 ITEM_TYPE_MODEL
  96.             rect                -123 48 400 400
  97.             model_angle            90
  98.             model_rotation        3.5
  99.             asset_model            "models/map_objects/bespin/jk2logo.md3"
  100. //            model_fovx            37
  101. //            model_fovy            34
  102. //            model_origin        100 100 100
  103.             visible            1
  104.             decoration
  105.         }
  106.  
  107.         // The saber halo on the left
  108.         itemDef 
  109.         {
  110.             name                saberhalo2
  111.             group                none
  112.             style                WINDOW_STYLE_SHADER
  113.             rect                -225 15 600 600
  114.             background            "gfx/menus/menu2b"                    // Frame
  115.             forecolor            0.25 0.25 0.25 1
  116.             visible            1
  117.             decoration
  118.         }
  119.  
  120.         //----------------------------------------------------------------------------------------------
  121.         //
  122.         //    TOP MAIN MENU BUTTONS
  123.         //
  124.         //----------------------------------------------------------------------------------------------
  125.  
  126.         // Big button "NEW"
  127.         itemDef 
  128.         {
  129.             name                newgamebutton_glow
  130.             group                mods
  131.             style                WINDOW_STYLE_SHADER
  132.             rect                115 115 130 24
  133.             background            "gfx/menus/menu_buttonback"            // Frame around button
  134.             forecolor            1 1 1 1
  135.             visible            0
  136.             // appearance_slot        1
  137.             decoration
  138.         }
  139.  
  140.         itemDef 
  141.         {
  142.             name                newgamebutton
  143.             group                toprow
  144.             style                WINDOW_STYLE_EMPTY
  145.             type                ITEM_TYPE_BUTTON
  146.             rect                115 115 130 24
  147.             text                @MENUS1_NEW
  148.             descText            @MENUS1_START_A_NEW_GAME
  149.             font                3
  150.             textscale            0.9
  151.             textaligny            0
  152.             textalign            ITEM_ALIGN_CENTER
  153.             textstyle            3
  154.             textalignx            65
  155.             forecolor            0.64 0.65 1 1
  156.             visible            1
  157.  
  158.             mouseEnter 
  159.             { 
  160.                 show            newgamebutton_glow 
  161.             }
  162.             mouseExit 
  163.             { 
  164.                 hide            newgamebutton_glow 
  165.             }            
  166.             action 
  167.             { 
  168.                 play            "sound/interface/button1.wav" ; 
  169.                 close            all ; 
  170.                 open            newgameMenu 
  171.             }
  172.         }
  173.  
  174.         // Big button "LOAD"
  175.         itemDef 
  176.         {
  177.             name                loadgamebutton_glow
  178.             group                mods
  179.             style                WINDOW_STYLE_SHADER
  180.             rect                245 115 130 24
  181.             background            "gfx/menus/menu_buttonback"            // Frame around button
  182.             forecolor            1 1 1 1
  183.             visible            0
  184.             // appearance_slot        1
  185.             decoration
  186.         }
  187.  
  188.         itemDef 
  189.         {
  190.             name                loadgamebutton
  191.             group                toprow
  192.             text                @MENUS1_LOAD
  193.             descText            @MENUS1_LOAD_A_SAVED_GAME
  194.             style                WINDOW_STYLE_EMPTY
  195.             type                ITEM_TYPE_BUTTON
  196.             rect                245 115 130 24
  197.             textaligny            0
  198.             font                3
  199.             textscale            0.9
  200.             textalign            ITEM_ALIGN_CENTER
  201.             textstyle            3
  202.             textalignx            65
  203.             forecolor            0.64 0.65 1 1
  204.             visible                1
  205.  
  206.             mouseEnter 
  207.             { 
  208.                 show            loadgamebutton_glow 
  209.             }
  210.             mouseExit 
  211.             { 
  212.                 hide            loadgamebutton_glow 
  213.             }            
  214.             action 
  215.             { 
  216.                 play            "sound/interface/button1.wav" ; 
  217.                 close            all ; 
  218.                 open            loadgameMenu 
  219.             }
  220.         }
  221.  
  222.         // Big button "CONTROLS"
  223.         itemDef 
  224.         {
  225.             name                controlsbutton_glow
  226.             group                mods
  227.             style                WINDOW_STYLE_SHADER
  228.             rect                375 115 130 24
  229.             background            "gfx/menus/menu_buttonback"            // Frame around button
  230.             forecolor            1 1 1 1
  231.             visible            0
  232.             // appearance_slot        1
  233.             decoration
  234.         }
  235.  
  236.         itemDef {
  237.             name                controlsbutton
  238.             group                toprow
  239.             text                @MENUS0_CONTROLS2
  240.             descText            @MENUS0_CONFIGURE_GAME_CONTROLS
  241.             type                ITEM_TYPE_BUTTON
  242.             style                WINDOW_STYLE_EMPTY
  243.             rect                375 115 130 24
  244.             font                3
  245.             textscale            0.9
  246.             textaligny            0
  247.             textalign            ITEM_ALIGN_CENTER
  248.             textstyle            3
  249.             textalignx            65
  250.             backcolor            0 0 0 0
  251.             forecolor            0.64 0.65 1 1
  252.             visible                1
  253.              
  254.             mouseEnter 
  255.             { 
  256.                 show            controlsbutton_glow 
  257.             }
  258.             mouseExit 
  259.             { 
  260.                 hide            controlsbutton_glow 
  261.             }            
  262.             action 
  263.             {
  264.                 play            "sound/interface/button1.wav" ; 
  265.                 close            all ; 
  266.                 open            controlsMenu ; 
  267.             }
  268.         }
  269.  
  270.         // Big button "SETUP"
  271.         itemDef 
  272.         {
  273.             name                setupbutton_glow
  274.             group                mods
  275.             style                WINDOW_STYLE_SHADER
  276.             rect                505 115 130 24
  277.             background            "gfx/menus/menu_buttonback"            // Frame around button
  278.             forecolor            1 1 1 1
  279.             visible            0
  280.             // appearance_slot        1
  281.             decoration
  282.         }
  283.  
  284.         itemDef {
  285.             name                setupbutton
  286.             group                toprow
  287.             text                @MENUS0_SETUP
  288.             descText            @MENUS0_CONFIGURE_GAME_SETTINGS
  289.             type                ITEM_TYPE_BUTTON
  290.             style                WINDOW_STYLE_EMPTY
  291.             rect                505 115 130 24
  292.             font                3
  293.             textscale            0.9
  294.             textaligny            0
  295.             textalign            ITEM_ALIGN_CENTER
  296.             textstyle            3
  297.             textalignx            65
  298.             backcolor            0 0 0 0
  299.             forecolor            0.64 0.65 1 1
  300.             visible            1
  301.              
  302.             mouseEnter 
  303.             { 
  304.                 show            setupbutton_glow 
  305.             }
  306.             mouseExit 
  307.             { 
  308.                 hide            setupbutton_glow 
  309.             }            
  310.             action 
  311.             {
  312.                 play            "sound/interface/button1.wav" ; 
  313.                 close            all ; 
  314.                 open            setupMenu ; 
  315.             }
  316.         }
  317.  
  318.         itemDef 
  319.         {
  320.             name                header_line
  321.             group                toprow
  322.             style                WINDOW_STYLE_SHADER
  323.             rect                125 136 500 4
  324.             background            "gfx/menus/menu_line"                    // Frame
  325.             forecolor            1 1 1 1
  326.             visible                1
  327.             decoration
  328.         }
  329.  
  330.  
  331.         //----------------------------------------------------------------------------------------------
  332.         //
  333.         //    OTHER MAIN MENU BUTTONS
  334.         //
  335.         //----------------------------------------------------------------------------------------------
  336.         // Credits hidden button
  337.         itemDef 
  338.         {
  339.             name                creditsbutton
  340.             group                othermain
  341. //            text                @CREDITS
  342.             descText            @MENUS0_SHOW_GAME_CREDITS
  343.             type                ITEM_TYPE_BUTTON
  344.             style                WINDOW_STYLE_EMPTY
  345.             rect                51 284 52 60
  346.             font                2
  347.             textscale            1
  348.             textaligny            0
  349.             textalign            ITEM_ALIGN_CENTER
  350.             textalignx            46
  351.             backcolor            0 0 0 0
  352.             forecolor            0.65 0.65 1 1
  353.             visible                0
  354.  
  355.             mouseEnter
  356.             {
  357.                 setitemcolor        saberhalo2     forecolor      0.7 0.7 0.7 1
  358.             }        
  359.             mouseExit
  360.             {
  361.                 setitemcolor        saberhalo2     forecolor      0.25 0.25 0.25 1
  362.             }        
  363.             action 
  364.             { 
  365.                 play            "sound/interface/button1.wav" ;     
  366.                 close            all ; 
  367.                 open            creditsMenu 
  368.             }
  369.         }
  370.  
  371.         //----------------------------------------------------------------------------------------------
  372.         // 
  373.         //   QUIT MENU specific stuff
  374.         // 
  375.         //----------------------------------------------------------------------------------------------
  376.         // Quitting title
  377.         itemDef 
  378.         {
  379.               name                quit_title
  380.             group                none
  381.               text                @MENUS2_LEAVING_JEDI_KNIGHT_2
  382.             style                WINDOW_STYLE_SHADER
  383.             background            "gfx/menus/menu_blendbox"
  384.               rect                150 145 450 16
  385.             font                3
  386.             textscale            0.7
  387.             textalign            ITEM_ALIGN_CENTER        
  388.             textalignx            225
  389.             textaligny            -1
  390.             forecolor            1 1 1 1
  391.               visible            1 
  392.             // appearance_slot        2
  393.               decoration 
  394.         }
  395.  
  396.         itemDef 
  397.         {
  398.             name confirm
  399.             group            none
  400.             text             @MENUS1_QUIT_JEDI_KNIGHT_II
  401.             font            2
  402.             textscale         1
  403.             textstyle         3
  404.             rect             150 270 450 20
  405.             textalign         ITEM_ALIGN_CENTER
  406.             textalignx         225
  407.             textaligny         0
  408.             decoration
  409.             forecolor         .433 .703 .722 1
  410.             visible         1
  411.             // appearance_slot    2
  412.         }
  413.  
  414.     
  415.         itemDef 
  416.         {
  417.             name            quitgame_cancel_button
  418.             group            none
  419.             style            WINDOW_STYLE_SHADER
  420.             rect            245 444 130 24
  421.             background        "gfx/menus/menu_buttonback"            // Frame around button
  422.             forecolor        1 1 1 1
  423.             decoration
  424.             visible        0 
  425.         }
  426.  
  427.         // CANCEL button
  428.         itemDef 
  429.         {
  430.             name            quitgame_cancel
  431.             group            none
  432.             text            @MENUS0_NO
  433.             type            ITEM_TYPE_BUTTON
  434.             style            WINDOW_STYLE_EMPTY
  435.             rect            245 444 130 24
  436.             font                3
  437.             textscale            1
  438.             textalignx            65
  439.             textaligny            -1
  440.             textalign            ITEM_ALIGN_CENTER
  441.             textstyle            3
  442.             descText        @MENUS1_DO_NOT_LEAVE_JEDI_KNIGHT
  443.             forecolor        0.65 0.65 1 1
  444.             visible            1
  445.             // appearance_slot 6
  446.             action 
  447.             { 
  448.                 play        "sound/interface/button1.wav" ; 
  449.                 close        quitMenu ; 
  450.                 open        mainMenu ;
  451.             }
  452.             mouseEnter 
  453.             { 
  454.                 show        quitgame_cancel_button 
  455.             }
  456.             mouseExit 
  457.             { 
  458.                 hide        quitgame_cancel_button 
  459.             }            
  460.         }
  461.  
  462.         itemDef 
  463.         {
  464.             name            quitgame_yes_button
  465.             group            none
  466.             style            WINDOW_STYLE_SHADER
  467.             rect            375 444 130 24
  468.             background        "gfx/menus/menu_buttonback"            // Frame around button
  469.             forecolor        1 1 1 1
  470.             decoration
  471.             visible        0
  472.             // appearance_slot 3
  473.         }
  474.  
  475.         // YES button
  476.         itemDef 
  477.         {
  478.             name            quitgame_yes
  479.             group            none
  480.             text            @MENUS0_YES
  481.             type            ITEM_TYPE_BUTTON
  482.             style            WINDOW_STYLE_EMPTY
  483.             rect            375 444 130 24
  484.             font                3
  485.             textscale            1
  486.             textalignx            65
  487.             textaligny            -1
  488.             textalign            ITEM_ALIGN_CENTER
  489.             textstyle            3
  490.             descText        @MENUS1_JEDI_KNIGHT_II
  491.             forecolor        0.65 0.65 1 1
  492.             visible            1
  493.             // appearance_slot 5
  494.               action 
  495.             { 
  496.                 play            "sound/interface/button1.wav" ; 
  497.                 uiScript    Quit            // Quit the game
  498.             }
  499.             mouseEnter 
  500.             { 
  501.                 show        quitgame_yes_button 
  502.             }
  503.             mouseExit 
  504.             { 
  505.                 hide        quitgame_yes_button 
  506.             }            
  507.         }
  508.  
  509.     }
  510. }
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.